<?php
/*------------------------------------------------------------------------
# com_jobseeker - jobseeker management 
# @author    pipapai.com
-------------------------------------------------------------------------*/
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('jobseeker', 'jobseeker');
   OCP\Util::addScript('jobseeker', 'passwdreset');
} else {
   OCP\Util::addStyle('static', 'jobseeker');
   OCP\Util::addScript('static', 'apps/jobseeker.passwdreset.min');
}


?>      

<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('jobseeker/js', 'jobseeker.php'));?>"></script>

<div class="mainpanel">
<div class='userdata'>

<form action="<?php echo OC_Helper::linkToRoute('jobseeker_setnewpass'); ?>" id="resetPassForm" name="resetPassForm" method="post">
   <div class="row-fluid oneconn_margin">
      <div class="span2 visible-desktop">&nbsp;</div>
      <div class="span8 oneconn_box">
         <div class="lgrg_title clearfix"><span class="pull-left">密码重置 - 请输入您的新密码</span></div>

         <div class="lgrg_form">

            <div class="row-fluid" id='t1'>
               <div class="span12">
                  <div class="form-horizontal">
                     <div class="control-group">
                        <label class="control-label key">电子邮箱:</label>
                        <div class="controls">
                           <span class="only_text" style="color:#333333;"><strong><?php echo $_['user']->email; ?></strong></span>
                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key" for="password"><span class="required">*</span>密码</label>
                        <div class="controls">
                           <input type="password" maxlength="15" name="password" id="password" class="input-xlarge required" title="密码长度6～15位，字母区分大小写" minlength="6"/>
                           <span class="medium label label-warning soft" style="white-space:normal;display:none;">建议使用包含数字、字母、下划线组合的安全密码，否则有可能会造成信息泄漏的危险。</span>
                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key" for="password2"><span class="required">*</span>确认密码</label>
                        <div class="controls">
                           <input type="password" maxlength="15" name="password2" id="password2" class="input-xlarge"/>
                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key"><span class="required">*</span>安全码</label>
                        <div class="controls">
                           <input type="text" class="input-medium required" placeholder="请填写下图中字符" id="captcha_code" name="captcha_code" maxlength="6" autocomplete="off"/>
                           <span class="help-inline medium notpasschecked" for="captcha_code"></span>
                        </div>
                     </div>
                     <div class="control-group">
                        <div class="controls">
                           <img style="width:164px;display:none;" id="captcha" class="captchaimg" src="/images/blank.png" alt="请输入图中数字和字>符"/><span class="help-inline medium"><a href="#" id="captcha_reload" title="如果安全码不清楚，点击一下更新">换一换</a></span>
                        </div>
                     </div>
                     <div class="control-group">
                        <div class="controls">
                           <button type="submit" id="resetpasswdbtn" class="btn btn-info">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
                        </div>
                     </div>

                    <div class="control-group">
                        <div class="controls">
                           <div id="regmsg" class="error" style="margin:10px 0 10px 0; padding:5px; display:block"></div>
                        </div>
                     </div>

                  </div>
               </div>
            </div>
         </div>
      </div>
      <div class="span2 visible-desktop">&nbsp;</div>
   </div>
   <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
   <input type="hidden" name="email" id="email" value="<?php echo $_['user']->email; ?>">
   <input type="hidden" name="token" id="token" value="<?php echo $_['user']->passwdreset_token; ?>">
</form>
</div>
</div>
